<?php
////////////////////////////////////////////////////////////////////////////
//                                                                        //
// NOTICE OF COPYRIGHT                                                    //
//                                                                        //
// Dean`s Office for Moodle                                               //
// Электронный деканат                                                    //
// <http://deansoffice.ru/>                                               //
//                                                                        //
// Copyright (C) 2012-2999  Kirill Krasnoschekov (Кирилл Краснощёков)     //
//                                                                        //
// This program is free software: you can redistribute it and/or modify   //
// it under the terms of the GNU General Public License as published by   //
// the Free Software Foundation, either version 3 of the Licensen.        //
//                                                                        //
// This program is distributed in the hope that it will be useful,        //
// but WITHOUT ANY WARRANTY; without even the implied warranty of         //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          //
// GNU General Public License for more details.                           //
//                                                                        //
// You should have received a copy of the GNU General Public License      //
// along with this program.  If not, see <http://www.gnu.org/licenses/>.  //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

// DOF core
require_once(dirname(realpath(__FILE__))."/../../lib.php");

// Guestbook own libraries
require_once(dirname(realpath(__FILE__))."/form.php");

require_once(dirname(realpath(__FILE__))."/lib/common.php");
require_once(dirname(realpath(__FILE__))."/lib/lib.dof.php");
require_once(dirname(realpath(__FILE__))."/lib/presentation.dof.php");
require_once(dirname(realpath(__FILE__))."/lib/logic.php");

// Function that is necesserily needed to call
$PAGE->set_context(context_system::instance());

// Moodle access check
require_login();

// DOF access check
$DOF->im('gb')->require_access('admin');

// DOF nav levels
$DOF->modlib('nvg')->add_level($DOF->get_string('title'), $DOF->url_im('standard')); 
$DOF->modlib('nvg')->add_level($DOF->get_string('title', 'gb'), $DOF->url_im('gb'));
?>